﻿
namespace Marmat.Forms.Views
{
    namespace GridControl
    {
        public class FocusedRowChangedEventArgs : GridEventArgs
        {
            private Grid.FocusedRowChangedEventArgs _args;

            public FocusedRowChangedEventArgs(Forms.GridControl gridControl, Grid.FocusedRowChangedEventArgs args) : base(gridControl)
            {
                this._args = args;
            }

            /// <summary>
            /// 获取当前焦点行的行号。
            /// </summary>
            /// <value></value>
            /// <returns></returns>
            /// <remarks></remarks>
            public int FocusedRowHandle
            {
                get
                {
                    return this._args.FocusedRowHandle;
                }
            }

            /// <summary>
            /// 获取上一个焦点行的行号。
            /// </summary>
            /// <value></value>
            /// <returns></returns>
            /// <remarks></remarks>
            public int PrevFocusedRowHandle
            {
                get
                {
                    return this._args.PrevFocusedRowHandle;
                }
            }

            public object Row
            {
                get
                {
                    return this._args.Row;
                }
            }
        }
    }
}